using Dream.Dialogue.Interface;
using UnityEngine;
using UnityEngine.UI;

namespace Dream.Dialogue.Base
{
    public abstract class TalkBase : MonoBehaviour, ITalk
    {
        [SerializeField] [TextArea] protected string words; //话语内容

        /// <summary>
        ///     指定的UI组件
        /// </summary>
        [SerializeField] protected Text text;

        /// <summary>
        ///     打字机效果持续时间
        /// </summary>
        [SerializeField] protected int time;

        public abstract void Talk();

        public abstract void SetWord(string talkText);

        public abstract bool StartTalk();
    }
}